package com.mzy.basics.serializable;

/**
 * @author Ives
 * * @date 2022/2/16
 */
public class Demo{

  public static void main(String[] args) {
    //序列化一个对象
    byte[] serialize = SerializeUtil.serialize(new Car(2, "宝马", 88.8));
    //反序列化
    Car deserialize = SerializeUtil.deserialize(serialize, Car.class);
    System.out.println(deserialize);
  }

}